/**
 * Project: apollo-base-tools
 * 
 * File Created at 2017年7月31日
 * 
 * Copyright 2015-2016 dx.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DongXue software Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with dx.com.
 */
package org.apollo.base.tools.ui.constants;

import java.awt.Color;
import java.awt.Image;
import java.awt.Toolkit;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.border.LineBorder;

import org.apollo.base.tools.ui.util.IconUtil;

/** 
* @ClassName: UIConstants 
* @Description: UI常量
* @author wuzhenfang(wzfbj2008@163.com)
* @date 2017年7月31日 上午9:31:36 
* @version V1.0 
*/
public class UIConstants {

	public static int height = 1024;
	public static int width = 768;
	
	public final static String CURRENT_DIR = System.getProperty("user.dir");

	public final static LineBorder lineBorder = (LineBorder) BorderFactory.createLineBorder(Color.GRAY);// 创建线形边框
	public final static LineBorder lineBorder_red = (LineBorder) BorderFactory.createLineBorder(Color.red);// 创建线形边框
	/**
     * 主窗口图标
     */
    public final static Image IMAGE_ICON = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("icon/compass.jpg"));
    public final static Image IMAGE_other = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("icon/other.gif"));
    public final static Image IMAGE_sliderbg = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("icon/sliderbg_02.png"));
    public final static Image IMAGE_bg = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("images/menu_item_background.png"));
    public final static Image IMAGE_TOP_BG = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("icon/pick_bg.jpg"));
    public final static Image IMAGE_TABBED_BG_R = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("images/tabbedpane_rollover.png"));
    public final static Image IMAGE_TABBED_BG = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("images/tabbedpane_background.png"));
    
    
   
	/**
	 * 主图标
	 */
	public final static ImageIcon ICON_SYNC = new ImageIcon(ClassLoader.getSystemResource("icon/compass.jpg"));
	
	public final static ImageIcon ICON_TITLE = new ImageIcon(ClassLoader.getSystemResource("icon/title.png"));
	
	public final static ImageIcon ICON_OTHER = new ImageIcon(ClassLoader.getSystemResource("icon/other.gif"));
	
	public final static ImageIcon ICON_DETAIL = new ImageIcon(ClassLoader.getSystemResource("icon/detail.gif"));
	
	public final static ImageIcon ICON_demo = IconUtil.getImageIcon("icon/style_fxy.gif", 490, 130, 509, 149);

	public final static String firstTabTitle = "首页";
	
	public final static ImageIcon ICON_HOME = IconUtil.getImageIcon("icon/style_fxy.gif", 9, 130, 31, 149);
	public final static ImageIcon ICON_GEN = IconUtil.getImageIcon("icon/style_fxy.gif", 490, 130, 509, 149);
	
	
	public final static ImageIcon ICON_HOME_2 = new ImageIcon(ClassLoader.getSystemResource("icon/icon_home.png"));
	public final static ImageIcon ICON_03 = new ImageIcon(ClassLoader.getSystemResource("icon/icon_03.png"));
	public final static ImageIcon ICON_04 = new ImageIcon(ClassLoader.getSystemResource("icon/icon_04.png"));
	
	
	/** UIManager中UI字体相关的key */
	public static String[] DEFAULT_FONT = new String[] { "Table.font", "TableHeader.font", "CheckBox.font", "Tree.font", "Viewport.font", "ProgressBar.font",
			"RadioButtonMenuItem.font", "ToolBar.font", "ColorChooser.font", "ToggleButton.font", "Panel.font", "TextArea.font", "Menu.font", "TableHeader.font", "TextField.font",
			"OptionPane.font", "MenuBar.font", "Button.font", "Label.font", "PasswordField.font", "ScrollPane.font", "MenuItem.font", "ToolTip.font", "List.font",
			"EditorPane.font", "Table.font", "TabbedPane.font", "RadioButton.font", "CheckBoxMenuItem.font", "TextPane.font", "PopupMenu.font", "TitledBorder.font",
			"ComboBox.font" };
}
